$(function(){
    $("#datetimepicker").datetimepicker({
        // 设置选择后关闭
        autoclose: true,
    });
});
$(function(){
$("#datetimepicker2").datetimepicker({
// 设置选择后关闭
autoclose: true,
});
});

function exchange(){
var origin = document.getElementById("origin").value;
//alert(origin);
var dest = document.getElementById("dest").value;
//alert(dest);
var t = origin;
origin = dest;
dest = t;
document.getElementById("origin").value = origin;
document.getElementById("dest").value = dest;
//alert(document.getElementById("origin").val);
}